<?php
$pid = Yii::$app->request->get('pid');
$id = Yii::$app->request->get('id', '');
?>
<script type="text/javascript" src="/My97DatePicker/WdatePicker.js"></script>

<div class="span10" id="datacontent">
    <ul class="breadcrumb">
        <li><a href="/test/question/index">测评题目</a> <span class="divider">/</span></li>
        <li class="active">听力练习</li>
        <li style="float: right"><a href="/test/question/add-detail?pid=<?php echo $pid?>">添加题目详情</a></li>
    </ul>
   
    <h4>题目列表</h4>

    <form action=" " id="checkPush" method="post">
        <table class="table table-hover">
            <thead>
            <tr>
                <th width="80">ID</th>
                <th>所属试卷</th>
                <th>科目</th>
                <th>题号</th>
                <th>题目</th>
                <th>发布时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            	<?php
	            foreach($data as $v) {
	                ?>
	                <tr>
	                    <td><span><?php echo $v['id']?></span></td>
	                    <td><span><?php echo $pidData['name']?></span></td>
	                    <td><span><?php echo $subjectData['name']?></span></td>
	                    <td><span><?php echo $v['name']?></span></td>
	                    <td><span><?php echo $v['article']?></span></td>
	                    <td><span><?php echo date('Y-m-d',$v['createTime'])?></span></td>
	                    <td>
	                        <div>
                                <a class="btn"
                                   href="<?php echo baseUrl ?>/test/question/add-detail?pid=<?php echo $pid ?>&id=<?php echo $v['id'] ?>">修改</a>
	                        </div>
	                    </td>
	                </tr>

	                <?php
	            }
	            ?>
            </tbody>
        </table>
        <div class="control-group">
            <div class="controls">
            </div>
        </div>
        <input type="hidden" name="url" value="<?php echo Yii::$app->request->getUrl()?>" />
    </form>
    
</div>
<script>

</script>